$.ready=function(){
    
    //chuanhgjian按钮
    $("body").append('<input type="button" value="keywords" id="mybutton1" />');
        $("body").append('<input type="button" value="datas" id="mybutton2" />');
   $("body").append('<iframe frameborder="0"  name="ifr" height="300" width="800" id="ifram" src="http://www.baidu.com"></iframe>');
    $("#mybutton1").click(function(){
    
arr=$("a");
        len=arr.length;
        j=0;

        for(i=0;i<len;i++){

            if(arr[i].innerHTML=='+'){
                bb[j]=arr[i];
                j++;
            }
        }
var i=1;

doclick(arr,i,types);



    })
    }
    
    
function  doclick(arr,i){
urls=arr[i].href;
    
document.getElementById('ifram').src=urls;
    
    
    i++
    if(i==arr.length){
        alert('stop');
        clearTimeout(s);
        return false;
    };
    s=setTimeout(function(){doclick(arr,i)},3000);
}
